﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using LinQModel.Abstract;
using LinQModel.Entities;
using System.Data.Linq;

namespace LinQModel.Concrete
{
    public class SQLClassesRepository : IClassesRepository 
    {
        private Table<Class> classesTable;
        public SQLClassesRepository(string connectionString)
        {
            classesTable = (new DataContext(connectionString)).GetTable<Class>();
        }

        public IQueryable<Class> Classes
        {
            get { return classesTable; }
        }
    }
}
